import React from 'react';
import { Tooltip, Icon } from 'antd';
import styles from './index.less';

const ToolRunButton = ({ onClick, text }) => {
  return (
    <div className={styles.toolsave_button}>
      <Tooltip title={text} placement="bottom" overlayClassName={styles.tooltip}>
        <Icon type="play-circle" onClick={onClick} />
      </Tooltip>
    </div>
  );
};

export default ToolRunButton;
